﻿<div>
    <Slider TValue="double" DefaultValue="35" Disabled="@Diabled"  />
    <Slider TValue="(double, double)" DefaultValue="(20, 50)" Disabled="@Diabled" />
    Diabled: <Switch Size="small" Checked="@Diabled" OnChange="(e)=>OnSwitch(e)" />
</div>

@code
{

    private bool Diabled;

    private void OnSwitch(bool args)
    {
        Diabled = args;
    }
}
